#include "OriginPCH.h"
#include "VertexArray.h"
#include "RendererAPI.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLVertexArray.h"

namespace Origin
{
	VertexArray* VertexArray::Create()
	{
		switch (Renderer::GetAPI())
		{	 
		case RendererAPI::API::None:
			return nullptr;
		case RendererAPI::API::OpenGL:
			return new OpenGLVertexArray();
		}
		return nullptr;
	}

}